<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="Responsive Admin Dashboard Template">
		<meta name="keywords" content="admin,dashboard">
		<meta name="author" content="skcats">
		<!-- The above 6 meta tags *must* come first in the head; any other head content must come *after* these tags -->

		<!-- Title -->
		<title>我的信息</title>

		<!-- Styles -->
		<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
		<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
		<link href="assets/plugins/icomoon/style.css" rel="stylesheet">
		<link href="assets/plugins/uniform/css/default.css" rel="stylesheet" />
		<link href="assets/plugins/switchery/switchery.min.css" rel="stylesheet" />
		<link href="assets/plugins/summernote-master/summernote.css" rel="stylesheet" type="text/css" />
		<!-- Theme Styles -->
		<link href="assets/css/ecaps.min.css" rel="stylesheet">
		<link href="assets/css/custom.css" rel="stylesheet">
	</head>
	<body>
		<!-- Page Inner -->
		<div class="page-inner" style="">
			<div class="page-title">
				<h3 class="breadcrumb-header">标题</h3>
			</div>
			<!-- 
			<div class="alert alert-default" role="alert">
			    Simple, clean and engaging charts for designers and developers.
			</div> -->
			<div id="main-wrapper">
				<div class="row">
					<div class="col-md-12">
						<div class="panel panel-white">
							<div class="panel-body">
								<form class="form-horizontal" name="add-form">
									<div class="form-group">
										<label for="company-name" class="col-sm-2 control-label">Company Name<br>公司名称(中)</label>
										<div class="col-sm-4">
											<input type="text" class="form-control input-rounded" name="c_name" placeholder="">
										</div>
									</div>
									<div class="form-group">
										<label for="company-name" class="col-sm-2 control-label">Company Name<br>公司名称(英)</label>
										<div class="col-sm-4">
											<input type="text" class="form-control input-rounded" name="name" placeholder="">
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">Brief Introduction<br>公司简介</label>
										<div class="col-sm-10">
											<div class="summernote"></div>
										</div>
									</div>
									<div class="form-group">
										<label for="company-name" class="col-sm-2 control-label">GMC Report Type<br> 品牌商认证类型</label>
										<div class="col-sm-4">
											<input type="text" class="form-control input-rounded" name="type" placeholder="">
										</div>
									</div>
									<div class="form-group">
										<label for="company-name" class="col-sm-2 control-label">GMC Report Url<br>证书地址</label>
										<div class="col-sm-4">
											<input type="text" class="form-control input-rounded" name="url" placeholder="">
										</div>
									</div>
									<div class="form-group" style="float: right;">
										<button type="button" class="btn btn-danger">取消</button>
										<button type="button" class="btn btn-primary">保存</button>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div><!-- Main Wrapper -->
			<div class="page-footer">
			</div>
		</div><!-- /Page Inner -->
		<!-- Javascripts -->
		<script src="assets/plugins/jquery/jquery-3.1.0.min.js"></script>
		<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
		<script src="assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
		<script src="assets/plugins/uniform/js/jquery.uniform.standalone.js"></script>
		<script src="assets/plugins/summernote-master/summernote.min.js"></script>
		<script src="assets/plugins/switchery/switchery.min.js"></script>
		<script src="assets/js/ecaps.min.js"></script>
		<script src="assets/js/pages/form-elements.js"></script>
		<script type="text/javascript">
			/* window.addEventListener('message', function(event) {
				// event.origin --发送者的源
				// event.source --发送者的window对象
				// event.data --数据
				console.log(event.data);
				if (event.data.id) {
					//此处执行事件
					console.log(event.data.id);
				}
			}) */
			$('.btn-primary').on('click', function() {
				var code = $('.summernote').code();
				var form = document.forms['add-form'];
				var c_name = form['c_name'].value;
				var name = form['name'].value;
				var type = form['type'].value;
				var url = form['url'].value;
				console.log(c_name);/* 
				//window.parent获取父页面对象
				console.log(window.parent.bb); //子页面获取父页面参数 */
				window.location.href = "band-brandInput.html?c_name=" + c_name + "&name=" + name + "&type=" + type + "&url=" +
					url;
			});
		</script>
	</body>
</html>
